package com.shexianyu.repository;

import com.shexianyu.entity.Info;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

/**
 * @author shexianyu
 * @desc 持久化类
 * @date 2022/1/19
 */
public interface InfoRepository extends JpaRepository<Info,Long> {
    @Query(nativeQuery = true,value = "select * from info where id = ?1")
    Info findOne(long id);
}
